package com.baizhiedu.four;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * ClassName: Account
 * Description:
 * Date: 2022/12/04 AM 12:28:42
 * <p>
 * project: spring5
 * package: com.baizhiedu.four
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
@Component
//@PropertySource("classpath:/four.properties")
public class Account implements Serializable {

    @Value("${id}")
    private Integer id;

    @Value("${name}")
    private String name;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
